<template>
	<view class="">
		demo页面
		<!-- <navigator url="/pages/demo2/demo2">跳转到demo2</navigator> -->
		<button @click="goDemo2">跳转到demo2</button>
		<button @click="goHome">跳转到首页</button>
	</view>
</template>

<script setup>
// uni.hideHomeButton();
function goDemo2(){
	uni.navigateTo({
		url: '/pages/demo2/demo2?name=张三&age=18'
	});
}

function goHome(){
	uni.switchTab({
		url: '/pages/index/index'
	});
}

onShow(()=>{
	console.log('当前页面层级', getCurrentPages())
})
</script>

<style lang='scss' scoped>

</style>
